package com.yswl.pri;

import com.yswl.pri.common.utils.MDateUtils;

import java.util.Date;

/**
 * Created by kangpAdministrator on 2018/6/8 0008.
 * Emial kangpeng@yunhetong.net
 * 广告，VIP 配置
 */

public class Config {
    public static final String AD_APPID = "1101152570";
    public static final String AD_SplashPosID = "8863364436303842593";

    public static class UeserConfig {
        public static boolean SHOW_AD = false;//是否显示广告
        public static boolean isAwayFree = true;//是否总是
        public static String DATE_START = "2019/1/10 00:00:00";//app打包时间，每次需要改值
        public static int SPACETIME = 30;//免费使用时长 单位天

        public static boolean isOverDue() {//是否超过30天试用期
            long curr = (new Date()).getTime();
            return MDateUtils.isOverDue(Config.UeserConfig.DATE_START, curr, SPACETIME);
        }
    }
}
